package cn.test.service;

import cn.test.mapper.TypeMapper;
import cn.test.pojo.Type;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author:ggj
 * @Date:2020/04/08/0:50
 * @Description:
 */

@Service
public class TypeService {

    @Autowired
    TypeMapper typeMapper;

    //查询所有的活动
    public List<Type> queryType(){
        return typeMapper.selectAll();
    }

}
